{% extends 'base/base.html' %}

{% block title %}
<title>agem每日推荐</title>
{% endblock %}

{% block body %}
    <div class="body_content_wrapper pb-2">
        <div class="container xcontainer">
            <section class="bg-dark rounded-3 g-0 p-3 text-white">
                <div id="search_results_wrapper">
                    <div class="video_list_box today_recommend mb-3">
                        <div class="video_list_box--hd">
                            <h6 class="title">每日推荐</h6>
                        </div>
                        <div class="video_list_box--bd">
                            <div class="row row-cols-6 g-1">
                                {% for an in page.object_list %}
                                <div class="col g-2 position-relative">
                                    <div class="video_item">
                                        <div class="video_item--image position-relative">
                                            <img referrerpolicy="no-referrer" src="https://cdn.aqdstatic.com:966/age/{{ an.imglink }}" data-original="https://cdn.aqdstatic.com:966/age/{{ an.imglink }}" class="video_thumbs lazyload d-block w-100" style="display: block;"><span class="video_item--info rounded-1 text-truncate">第{{ an.episode }}集</span>
                                        </div>
                                        <div class="video_item-title text-truncate text-center py-2">
                                            <a href='{% url "main:detail" an.id %}' class="link-light text-decoration-none stretched-link">{{ an.title }}</a>
                                        </div>
                                    </div>
                                </div>
                                {% endfor %}
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row mt-4">
                    <div class="col-md-12">
                        <nav class="cate_video_list_pagination_wrapper common_pagination" aria-label="navigation">
                            <ul class="pagination">
                                <li class="page-item disabled"><a class="page-link" href="javascript:;">共 <strong>{{ same_weekday_animes }}</strong> 条记录，当前 <strong>{{ page_num }}/{{ page.paginator.num_pages }}</strong> 页</a></li>
                                <li class="page-item"><a class="page-link" href="?page=1">首页</a></li>
                                {% if page.has_previous %}
                                <li class="page-item"><a class="page-link" href="?page={{ page.previous_page_number }}">上一页</a></li>
                                {% endif %}

                                {% for page_num in page.paginator.page_range %}
                                <li class="page-item "><a class="page-link" href="?page={{ page_num }}">{{ page_num }}</a></li>
                                {% endfor %}

                                {% if page.has_next %}
                                <li class="page-item"><a class="page-link" href="?page={{ page.next_page_number }}">下一页</a></li>
                                {% endif %}

                                <li class="page-item"><a class="page-link" href="?page={{ page.paginator.num_pages }}">尾页</a></li>
                            </ul>
                        </nav>
                    </div>
                </div>
            </section>
        </div>
    </div>



{% endblock %}